<?php
require_once dirname(__FILE__) . "/../PUB/class/tools/ServerFunction.class.php";
require_once dirname(__FILE__) . "/../PUB/class/db/DAB.class.php";
?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        $dab=new DAB("");

        $dab->connectDB("LOCALHOST_WEBDB");

        $sql="SELECT * FROM sps_deeds_main";// where deeds_id='76309dc067485bb98a289b16f4a295a6'";

//        $param= array("deeds_id"=>md5(uniqid()),
//                      "app_empno"=>$_SESSION["empno"],
//                      "dept_id"=>"dept_id",
//                      "deeds_winners"=>$_POST["deeds_winners"],
//                      "deeds_instructor"=>$_POST["deeds_instructor"],
//                      "deeds_date"=>$_POST["deeds_date"],
//                      "deeds_desc"=>$_POST["deeds_desc"],
//                      "deeds_notes"=>$_POST["deeds_notes"]);


        try{
            $rs=$dab->query($sql);

            echo "row count==>$dab->lastRowCount<br/>";

            foreach ($rs as $row){
                print_r($row[1]);
                echo "</br>";
            }
            
            print_r($rs);

            echo "<br/>----------------------------------------------------------------------------------------------------------------------</br>";

            print_r($dab->lastColumn);
        }
        catch(Exception $e){
            echo $e->getMessage();
        }
        ?>
    </body>
</html>
